<%@ page contentType="text/html;charset=UTF-8" %>
<%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Contact us</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${ctx }/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function(){
	$('#contactform').submit(function(){				  
		var action = $(this).attr('action');
		$.post(action, { 
			name: $('#name').val(),
			email: $('#email').val(),
			company: $('#company').val(),
			subject: $('#subject').val(),
			message: $('#message').val()
		},
			function(data){
				$('#contactform #submit').attr('disabled','');
				$('.response').remove();
				$('#contactform').before('<p class="response">'+data+'</p>');
				$('.response').slideDown();
				if(data=='Message sent!') $('#contactform').slideUp();
			}
		); 
		return false;
	});
});
// ]]>
</script>
</head>
<body>
<!-- 顶部页面的容器 -->
<div class="main">

  <!-- 包含页面头部的容器 -->
  <div class="header">
    <div class="head_2">
      <div class="block_header">
        <div class="logo"><a href="index.jsp"><img src="${ctx }/images/logo2.gif" alt="Home" width="345" height="58" border="0" /></a></div>
        <div class="logo_text">premium design templates</div>
        <div class="Simple_text">
          <form id="form1" name="form1" method="post" action="">
            <label>
              <input name="search" type="text" id="search" size="35" />
            </label>
          </form>
        </div>
        <div class="Simple_text_img"><a href="#"><img src="${ctx }/images/ok.gif" alt="OK" width="30" height="18" border="0" /></a></div>
        <div class="clr"></div>
      </div>
      <div class="menu">
        <ul>
          <li><a href="index.jsp">Home</a></li>
          <li><a href="services.jsp">About us</a></li>
          <li><a href="services.jsp" >Services</a></li>
          <li><a href="portfolio.jsp" >Portfolio</a></li>
          <li><a style="border:none;" href="contacts.jsp" class="active">Contact us</a></li>
        </ul>
      </div>
      <div class="clr"></div>
      <div class="text">
        <div class="left_t"> It is a long established fact that a reader will be distracted by the readable content of a page </div>
        <div class="right_t"><a href="#"><img src="${ctx }/images/rss.gif" alt="RSS" width="31" height="21" border="0" align="right" /></a><a href="#"><img src="${ctx }/images/twitter.gif" alt="twitter" width="28" height="24" border="0" align="right" /></a></div>
      </div>
    </div>
  </div>
  <div class="clr"></div>
  
  <!-- 包含页面中间的容器 -->
  <div class="body body_bg">
    <div class="right">
      <h2><span>Adress</span></h2>
      <p>1234 Make Believe<br />
        New York, NY 50210<br />
        United States of America</p>
      <p>&nbsp;</p>
      <p>Tel: +1 234 567 8910<br />
        E-mail: <a href="#">mail@yoursitename.com</a></p>
      <div class="testimonials">
        <h2>Testimonials</h2>
        <p align="justify">Lorem Ipsum is simply dummy text industry. Lorem Ipsum has been the. since the 1500s, when an unknown printer..</p>
        <h5 align="justify"><strong>-Jhon Jhohonson, web designer</strong></h5>
      </div>
    </div>
    <div class="left">
      <div align="justify">
        <h2><span>Contact</span> Us</h2>
        <p>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. </p>
      </div>
    </div>
    <div class="form">
      <form action="contact.php" method="post" id="contactform">
        <ol>
          <li>
            <label for="name">First Name*</label>
            <input id="name" name="name" class="text" />
          </li>
          <li>
            <label for="email">Your email*</label>
            <input id="email" name="email" class="text" />
          </li>
          <li>
            <label for="company">Company name *</label>
            <input id="company" name="company" class="text" />
          </li>
          <li>
            <label for="subject">Subject</label>
            <input id="subject" name="subject" class="text" />
          </li>
          <li>
            <label for="message">Message*</label>
            <textarea id="message" name="message" rows="6" cols="50"></textarea>
          </li>
          <li class="buttons">
            <input type="image" name="imageField" id="imageField" src="${ctx }/images/send.jpg" />
          </li>
        </ol>
      </form>
    </div>
    <div class="clr"></div>
  </div>
  
  <div class="clr"></div>
</div>

<!-- 底部页面的容器 -->
<div class="footer">
  <p align="center"><a href="#">home</a> <a href="#">services</a> <a href="#">portfolio</a> <a href="#">about</a> <a href="#">contact</a> <a href="#">rss feed</a> </p>
  <p align="center">© Copyright 2009. dreamtemplate.com. All Rights Reserved</p>
</div>
</body>
</html>